package com.boot.gateway;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

@Slf4j
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
//排除数据源自动装配:其它微服务的数据库依赖可能会通过父工程依赖传递导致网关微服务引入datasource相关依赖
//从而导致项目启动失败
public class GatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class,args);
        log.info("网关微服务启动成功");
    }
}
